package server.main;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import common.entity.Person;
import server.transceiver.Receiver;
import server.transceiver.Sendor;

public class ServerManager{

	public static void main(String[] args) throws Exception {
		//启动Server监听端口
		startServer();
	}
	
	public static void startServer() throws IOException{
		ServerSocket serverSocket = new ServerSocket(8888);
		while (true) {
			Socket socket = serverSocket.accept();
			new Thread(new Receiver(socket)).start();
		}
	}
}

	
